package com.szcatic.ework.service.impl;

import java.util.List;
import java.util.Set;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.szcatic.ework.dao.UserDao;
import com.szcatic.ework.service.UserService;
import com.szcatic.ework.vo.User;

/**
 * User Service实现类
 * @author Administrator
 *
 */
@Service("userServiceImpl")
public class UserServiceImpl implements UserService {
	
	@Resource
	private UserDao userDao;

	@Override
	public User getUserByUserName(String userName) {
		return userDao.getUserByUserName(userName);
	}

	@Override
	public Set<String> getRolesByUserName(String userName) {
		return userDao.getRolesByUserName(userName);
	}

	@Override
	public Set<String> getPermisionsByUserName(String userName) {
		return userDao.getPermisionsByUserName(userName);
	}

	@Override
	public List<User> queryUserList() {
		return userDao.queryUserList();
	}

}
